<?php
/* @var $this ProductoController */
/* @var $model Producto */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'producto-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Los campos con <span class="required">*</span> son requeridos.</p>

	<?php echo $form->errorSummary($model); ?>
	
	<div class="row">
		<div class="span-7">
			<?php echo $form->labelEx($model,'nombre'); ?>
			<?php echo $form->textField($model,'nombre',array('size'=>60,'maxlength'=>100)); ?>
			<?php echo $form->error($model,'nombre'); ?>
		</div>
	
		<div class="span-5">
			<?php echo $form->labelEx($model,'rubro'); ?>
			<?php echo $form->dropDownList($model,'rubro',CHtml::listData(Rubro::model()->findAll(),'idRubro','descripcion'),array('empty'=>'Seleccione el rubro',)); ?>
			<?php echo $form->error($model,'rubro'); ?>
		</div>
	
		<div class="span-5">
			<?php echo $form->labelEx($model,'tipo_iva'); ?>
			<?php echo $form->textField($model,'tipo_iva',array('size'=>10,'maxlength'=>10)); ?>
			<?php echo $form->error($model,'tipo_iva'); ?>
		</div>
	</div>
	<div class="row">
		<div class="span-5">
			<?php echo $form->labelEx($model,'incremento'); ?>
			<?php echo $form->textField($model,'incremento',array('size'=>10,'maxlength'=>10)); ?>
			<?php echo $form->error($model,'incremento'); ?>
		</div>
	
		<div class="span-5">
			<?php echo $form->labelEx($model,'inventario_minimo'); ?>
			<?php echo $form->textField($model,'inventario_minimo',array('size'=>10,'maxlength'=>10)); ?>
			<?php echo $form->error($model,'inventario_minimo'); ?>
		</div>
	
		<div class="span-2">
			<?php echo $form->labelEx($model,'suspendido'); ?>
			<?php echo $form->checkBox($model,'suspendido'); ?>
			<?php echo $form->error($model,'suspendido'); ?>
		</div>
	</div>



	<div class="span-10">
		<div class="span-4">
			<?php echo CHtml::submitButton($model->isNewRecord ? 'Gurardar y Continuar' : 'Gurardar y Continuar'); ?>
		</div>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->